package com.fcat.common.user.mapper;

import com.fcat.springboot.mybatis.mapper.base.TsuantoneBaseMapper;
import com.fcat.common.user.entity.Role;
import com.fcat.common.user.vo.RoleGroupVO;
import com.fcat.common.user.vo.UserRoleVO;

import java.util.List;
import java.util.Map;

public interface RoleMapper extends TsuantoneBaseMapper<Role> {
    List<String> getSystemDefaultRoleName(Map<String,Object> map);

    List<Long> getSystemDefaultRoleId(Map<String, Object> map);

    List<Role> getListByUser(Map<String,Object> map);


    List<Role> getListByCompnayIdAndUsername(Map<String, Object> map);

    List<Long> getUserIsAdminRole(Map<String, Object> map);

    List<UserRoleVO> getByCompanyIdAndId(Map<String, Object> map);

    Integer getUserCountByRoleId(Map<String, Object> map);
}